@extends('frontend/layouts/default')

@section('content')

<h1>Edit MasterCode</h1>
{{ Form::model($masterCode, array('method' => 'PATCH', 'route' => array('acc.master.code.update', $masterCode->getJointPk()))) }}

<div class="row-fluid">
<div  class="span3 control-group {{ $errors->first('domain', ' error') }}">
	<label class="control-label" for="domain">Domain</label>
	<input class="input-block-level" placeholder="Domain" title="Domain" name="domain" type="number" value="{{ Input::old('domain', $masterCode->domain) }}">
	{{ $errors->first('domain', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('id', ' error') }}">
	<label class="control-label" for="id">Id</label>
	<input class="input-block-level" placeholder="Id" title="Id" name="id" type="number" value="{{ Input::old('id', $masterCode->id) }}">
	{{ $errors->first('id', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('code', ' error') }}">
	<label class="control-label" for="code">Code</label>
	<input class="input-block-level" placeholder="Code" title="Code" name="code" type="number" value="{{ Input::old('code', $masterCode->code) }}">
	{{ $errors->first('code', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('balance', ' error') }}">
	<label class="control-label" for="balance">Balance</label>
	<input class="input-block-level" placeholder="Balance" title="Balance" name="balance" type="text" value="{{ Input::old('balance', $masterCode->balance) }}">
	{{ $errors->first('balance', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('element', ' error') }}">
	<label class="control-label" for="element">Element</label>
	<input class="input-block-level" placeholder="Element" title="Element" name="element" type="text" value="{{ Input::old('element', $masterCode->element) }}">
	{{ $errors->first('element', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('name', ' error') }}">
	<label class="control-label" for="name">Name</label>
	<input class="input-block-level" placeholder="Name" title="Name" name="name" type="text" value="{{ Input::old('name', $masterCode->name) }}">
	{{ $errors->first('name', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('sname', ' error') }}">
	<label class="control-label" for="sname">Sname</label>
	<input class="input-block-level" placeholder="Sname" title="Sname" name="sname" type="text" value="{{ Input::old('sname', $masterCode->sname) }}">
	{{ $errors->first('sname', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('lname', ' error') }}">
	<label class="control-label" for="lname">Lname</label>
	<input class="input-block-level" placeholder="Lname" title="Lname" name="lname" type="text" value="{{ Input::old('lname', $masterCode->lname) }}">
	{{ $errors->first('lname', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('uname', ' error') }}">
	<label class="control-label" for="uname">Uname</label>
	<input class="input-block-level" placeholder="Uname" title="Uname" name="uname" type="text" value="{{ Input::old('uname', $masterCode->uname) }}">
	{{ $errors->first('uname', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('spell', ' error') }}">
	<label class="control-label" for="spell">Spell</label>
	<input class="input-block-level" placeholder="Spell" title="Spell" name="spell" type="text" value="{{ Input::old('spell', $masterCode->spell) }}">
	{{ $errors->first('spell', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('type', ' error') }}">
	<label class="control-label" for="type">Type</label>
	<input class="input-block-level" placeholder="Type" title="Type" name="type" type="text" value="{{ Input::old('type', $masterCode->type) }}">
	{{ $errors->first('type', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('abstract', ' error') }}">
	<label class="control-label" for="abstract">Abstract</label>
	<input class="input-block-level" placeholder="Abstract" title="Abstract" name="abstract" type="text" value="{{ Input::old('abstract', $masterCode->abstract) }}">
	{{ $errors->first('abstract', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('cvp_type', ' error') }}">
	<label class="control-label" for="cvp_type">Cvp_type</label>
	<input class="input-block-level" placeholder="Cvp_type" title="Cvp_type" name="cvp_type" type="text" value="{{ Input::old('cvp_type', $masterCode->cvp_type) }}">
	{{ $errors->first('cvp_type', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('calclute_type', ' error') }}">
	<label class="control-label" for="calclute_type">Calclute_type</label>
	<input class="input-block-level" placeholder="Calclute_type" title="Calclute_type" name="calclute_type" type="text" value="{{ Input::old('calclute_type', $masterCode->calclute_type) }}">
	{{ $errors->first('calclute_type', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('tax_debt', ' error') }}">
	<label class="control-label" for="tax_debt">Tax_debt</label>
	<input class="input-block-level" placeholder="Tax_debt" title="Tax_debt" name="tax_debt" type="text" value="{{ Input::old('tax_debt', $masterCode->tax_debt) }}">
	{{ $errors->first('tax_debt', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('tax_credit', ' error') }}">
	<label class="control-label" for="tax_credit">Tax_credit</label>
	<input class="input-block-level" placeholder="Tax_credit" title="Tax_credit" name="tax_credit" type="text" value="{{ Input::old('tax_credit', $masterCode->tax_credit) }}">
	{{ $errors->first('tax_credit', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('memo', ' error') }}">
	<label class="control-label" for="memo">Memo</label>
	<input class="input-block-level" placeholder="Memo" title="Memo" name="memo" type="text" value="{{ Input::old('memo', $masterCode->memo) }}">
	{{ $errors->first('memo', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_parent', ' error') }}">
	<label class="control-label" for="node_parent">Node_parent</label>
	<input class="input-block-level" placeholder="Node_parent" title="Node_parent" name="node_parent" type="number" value="{{ Input::old('node_parent', $masterCode->node_parent) }}">
	{{ $errors->first('node_parent', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_left', ' error') }}">
	<label class="control-label" for="node_left">Node_left</label>
	<input class="input-block-level" placeholder="Node_left" title="Node_left" name="node_left" type="number" value="{{ Input::old('node_left', $masterCode->node_left) }}">
	{{ $errors->first('node_left', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_right', ' error') }}">
	<label class="control-label" for="node_right">Node_right</label>
	<input class="input-block-level" placeholder="Node_right" title="Node_right" name="node_right" type="number" value="{{ Input::old('node_right', $masterCode->node_right) }}">
	{{ $errors->first('node_right', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_depth', ' error') }}">
	<label class="control-label" for="node_depth">Node_depth</label>
	<input class="input-block-level" placeholder="Node_depth" title="Node_depth" name="node_depth" type="number" value="{{ Input::old('node_depth', $masterCode->node_depth) }}">
	{{ $errors->first('node_depth', '<span class="help-block">:message</span>') }}
</div>
<div  class="span3 control-group {{ $errors->first('node_flag', ' error') }}">
	<label class="control-label" for="node_flag">Node_flag</label>
	<input class="input-block-level" placeholder="Node_flag" title="Node_flag" name="node_flag" type="number" value="{{ Input::old('node_flag', $masterCode->node_flag) }}">
	{{ $errors->first('node_flag', '<span class="help-block">:message</span>') }}
</div>
</div>

<div>
{{ Form::submit('Update', array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
{{ link_to_route('acc.master.code.show', 'Cancel', $masterCode->getJointPk(), array('class' => 'btn')) }}
</div>

{{ Form::close() }}

@stop